package com.acme.bankapp.listeners;

import com.acme.bankapp.domain.account.Account;
import com.acme.bankapp.domain.bank.Client;

public class PrintClientListener implements ClientRegistrationListener {

	@Override
	public void onClientAdded(Client c) {
		int i=0;
		System.out.print(c.getClientSalutation());
		System.out.print(" Age: " + c.getAge());
		for(Account acc:c.getAccList())
		System.out.println((i++)+" "+acc.getAccountType()+" Balance: " + acc.getBalance());
	}

}
